﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchRoleProgramMappingByRole.ascx.vb"
    Inherits="WebForm_ManageRole_SearchRoleProgramMappingByRole" %>
<%@ Register Src="~/WebForm/SearchRoleProgramColumnMappingByRole.ascx" TagName="SearchRoleProgramColumnMappingByRole"
    TagPrefix="My" %>
<asp:Panel ID="panel1" runat="server" SkinID="DragPanel" Width="500">
    <br />
    <div align="center">
        <asp:Label ID="lblForm" runat="server" meta:resourcekey="Page" SkinID="title" Visible="true"></asp:Label>
    </div>
    <br />
    <table>
        <tr>
            <td align="left">
                <asp:Label ID="lblProgramGroup" runat="server" meta:resourcekey="lblProgramGroup"></asp:Label>
                <asp:DropDownList ID="ddlProgramGroup" runat="server" AutoPostBack="true"></asp:DropDownList>                
            </td>
        </tr>            
        <tr>
            <td align="left">
                <asp:Label ID="usage" runat="server" SkinID="usage" meta:resourcekey="usage"></asp:Label>
                <My:MyGridView ID="gv" runat="server" SkinID="pager" DataKeyNames="ProgramID,Parent,TableName">
                    <Columns>
                        <asp:TemplateField meta:resourcekey="bfProgramName">
                            <ItemTemplate>
                                <asp:LinkButton ID="lknProgramName" runat="server" CommandName="lknProgramName" Text='<%# Bind("ProgramName") %>'></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfAddAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllAdd" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkAdd" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostback="true" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfEditAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllEdit" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkEdit" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostback="true" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfDeleteAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllDelete" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkDelete" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostback="true" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfQueryAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllQuery" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkQuery" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostback="true" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfPrintAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllPrint" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkPrint" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostback="true" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfAdminAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllAdmin" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkAdmin" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostback="true" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </My:MyGridView>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" />
                <asp:Button ID="btnOK" runat="server" meta:resourcekey="btnOK" />
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" Style="display: none" SkinID="null" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" TargetControlID="btnDummy"
    PopupControlID="panel1" OkControlID="btnOK" PopupDragHandleControlID="panel1" />
<My:SearchRoleProgramColumnMappingByRole ID="SearchRoleProgramColumnMappingByRole1"
    runat="server" />
